//package com.config;
//
//import org.springframework.boot.context.properties.ConfigurationProperties;
//import org.springframework.boot.jdbc.DataSourceBuilder;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.context.annotation.Primary;
//
//import javax.sql.DataSource;
//
///**
// * @author: create by God of SJF
// * @version: v1.0
// * @description: com.config
// * @date:2021/9/9
// */
//
//@Configuration
//public class BatchDatasource {
//
//    @Bean(name = "batchDataSource")
//    @ConfigurationProperties(prefix = "spring.datasource.batch")
//    @Primary
//    public DataSource batchDataSource() {
//        return DataSourceBuilder.create().build();
//    }
//}
